package com.teamall.web.main.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class CodeStatVillageArg {
    private String pk_name = "VILLAGE_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<CodeStatVillageCriteria> oredCriteria;

    public CodeStatVillageArg() {
        oredCriteria = new ArrayList<CodeStatVillageCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<CodeStatVillageCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(CodeStatVillageCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public CodeStatVillageCriteria or() {
    	CodeStatVillageCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public CodeStatVillageCriteria createCriteria() {
    	CodeStatVillageCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected CodeStatVillageCriteria createCriteriaInternal() {
    	CodeStatVillageCriteria criteria = new CodeStatVillageCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<CodeStatVillageCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<CodeStatVillageCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<CodeStatVillageCriterion> getAllCriteria() {
            return criteria;
        }

        public List<CodeStatVillageCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new CodeStatVillageCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeStatVillageCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeStatVillageCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeStatVillageCriterion(condition, value1, value2));
        }

        public CodeStatVillageCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (CodeStatVillageCriteria) this;
        }
        public CodeStatVillageCriteria andTownIdIsNull() {
            addCriterion("TOWN_ID is null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdIsNotNull() {
            addCriterion("TOWN_ID is not null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdEqualTo(Integer value) {
            addCriterion("TOWN_ID =", value, "TOWN_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdNotEqualTo(Integer value) {
            addCriterion("TOWN_ID <>", value, "TOWN_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdGreaterThan(Integer value) {
            addCriterion("TOWN_ID >", value, "TOWN_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("TOWN_ID >=", value, "TOWN_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdLessThan(Integer value) {
            addCriterion("TOWN_ID <", value, "TOWN_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdLessThanOrEqualTo(Integer value) {
            addCriterion("TOWN_ID <=", value, "TOWN_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdNotLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdLeftLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdNotLeftLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdRightLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdNotRightLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdIn(List<Integer> values) {
            addCriterion("TOWN_ID  in ", values, "TOWN_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdNotIn(List<Integer> values) {
            addCriterion("TOWN_ID not in ", values, "TOWN_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdBetween(Integer value1, Integer value2) {
            addCriterion("TOWN_ID between ", value1, value2, "TOWN_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownIdNotBetween(Integer value1, Integer value2) {
            addCriterion("TOWN_ID not between ", value1, value2, "TOWN_ID");
            return (CodeStatVillageCriteria) this;
        }
        public CodeStatVillageCriteria andTownNameIsNull() {
            addCriterion("TOWN_NAME is null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameIsNotNull() {
            addCriterion("TOWN_NAME is not null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameEqualTo(String value) {
            addCriterion("TOWN_NAME =", value, "TOWN_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameNotEqualTo(String value) {
            addCriterion("TOWN_NAME <>", value, "TOWN_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameGreaterThan(String value) {
            addCriterion("TOWN_NAME >", value, "TOWN_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameGreaterThanOrEqualTo(String value) {
            addCriterion("TOWN_NAME >=", value, "TOWN_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameLessThan(String value) {
            addCriterion("TOWN_NAME <", value, "TOWN_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameLessThanOrEqualTo(String value) {
            addCriterion("TOWN_NAME <=", value, "TOWN_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameNotLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameLeftLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameNotLeftLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameRightLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameNotRightLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameIn(List<String> values) {
            addCriterion("TOWN_NAME  in ", values, "TOWN_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameNotIn(List<String> values) {
            addCriterion("TOWN_NAME not in ", values, "TOWN_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameBetween(String value1, String value2) {
            addCriterion("TOWN_NAME between ", value1, value2, "TOWN_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andTownNameNotBetween(String value1, String value2) {
            addCriterion("TOWN_NAME not between ", value1, value2, "TOWN_NAME");
            return (CodeStatVillageCriteria) this;
        }
        public CodeStatVillageCriteria andVillageIdIsNull() {
            addCriterion("VILLAGE_ID is null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdIsNotNull() {
            addCriterion("VILLAGE_ID is not null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdEqualTo(Integer value) {
            addCriterion("VILLAGE_ID =", value, "VILLAGE_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdNotEqualTo(Integer value) {
            addCriterion("VILLAGE_ID <>", value, "VILLAGE_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdGreaterThan(Integer value) {
            addCriterion("VILLAGE_ID >", value, "VILLAGE_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("VILLAGE_ID >=", value, "VILLAGE_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdLessThan(Integer value) {
            addCriterion("VILLAGE_ID <", value, "VILLAGE_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdLessThanOrEqualTo(Integer value) {
            addCriterion("VILLAGE_ID <=", value, "VILLAGE_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdLike(Integer value) {
            addCriterion("VILLAGE_ID like ", value, "VILLAGE_ID", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdNotLike(Integer value) {
            addCriterion("VILLAGE_ID  not like ", value, "VILLAGE_ID", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdLeftLike(Integer value) {
            addCriterion("VILLAGE_ID like ", value, "VILLAGE_ID", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdNotLeftLike(Integer value) {
            addCriterion("VILLAGE_ID  not like ", value, "VILLAGE_ID", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdRightLike(Integer value) {
            addCriterion("VILLAGE_ID like ", value, "VILLAGE_ID", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdNotRightLike(Integer value) {
            addCriterion("VILLAGE_ID  not like ", value, "VILLAGE_ID", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdIn(List<Integer> values) {
            addCriterion("VILLAGE_ID  in ", values, "VILLAGE_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdNotIn(List<Integer> values) {
            addCriterion("VILLAGE_ID not in ", values, "VILLAGE_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdBetween(Integer value1, Integer value2) {
            addCriterion("VILLAGE_ID between ", value1, value2, "VILLAGE_ID");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageIdNotBetween(Integer value1, Integer value2) {
            addCriterion("VILLAGE_ID not between ", value1, value2, "VILLAGE_ID");
            return (CodeStatVillageCriteria) this;
        }
        public CodeStatVillageCriteria andVillageCodeIsNull() {
            addCriterion("VILLAGE_CODE is null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeIsNotNull() {
            addCriterion("VILLAGE_CODE is not null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeEqualTo(String value) {
            addCriterion("VILLAGE_CODE =", value, "VILLAGE_CODE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeNotEqualTo(String value) {
            addCriterion("VILLAGE_CODE <>", value, "VILLAGE_CODE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeGreaterThan(String value) {
            addCriterion("VILLAGE_CODE >", value, "VILLAGE_CODE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeGreaterThanOrEqualTo(String value) {
            addCriterion("VILLAGE_CODE >=", value, "VILLAGE_CODE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeLessThan(String value) {
            addCriterion("VILLAGE_CODE <", value, "VILLAGE_CODE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeLessThanOrEqualTo(String value) {
            addCriterion("VILLAGE_CODE <=", value, "VILLAGE_CODE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeLike(String value) {
            addCriterion("VILLAGE_CODE like ", value, "VILLAGE_CODE", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeNotLike(String value) {
            addCriterion("VILLAGE_CODE  not like ", value, "VILLAGE_CODE", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeLeftLike(String value) {
            addCriterion("VILLAGE_CODE like ", value, "VILLAGE_CODE", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeNotLeftLike(String value) {
            addCriterion("VILLAGE_CODE  not like ", value, "VILLAGE_CODE", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeRightLike(String value) {
            addCriterion("VILLAGE_CODE like ", value, "VILLAGE_CODE", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeNotRightLike(String value) {
            addCriterion("VILLAGE_CODE  not like ", value, "VILLAGE_CODE", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeIn(List<String> values) {
            addCriterion("VILLAGE_CODE  in ", values, "VILLAGE_CODE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeNotIn(List<String> values) {
            addCriterion("VILLAGE_CODE not in ", values, "VILLAGE_CODE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeBetween(String value1, String value2) {
            addCriterion("VILLAGE_CODE between ", value1, value2, "VILLAGE_CODE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageCodeNotBetween(String value1, String value2) {
            addCriterion("VILLAGE_CODE not between ", value1, value2, "VILLAGE_CODE");
            return (CodeStatVillageCriteria) this;
        }
        public CodeStatVillageCriteria andVillageNameIsNull() {
            addCriterion("VILLAGE_NAME is null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameIsNotNull() {
            addCriterion("VILLAGE_NAME is not null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameEqualTo(String value) {
            addCriterion("VILLAGE_NAME =", value, "VILLAGE_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameNotEqualTo(String value) {
            addCriterion("VILLAGE_NAME <>", value, "VILLAGE_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameGreaterThan(String value) {
            addCriterion("VILLAGE_NAME >", value, "VILLAGE_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameGreaterThanOrEqualTo(String value) {
            addCriterion("VILLAGE_NAME >=", value, "VILLAGE_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameLessThan(String value) {
            addCriterion("VILLAGE_NAME <", value, "VILLAGE_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameLessThanOrEqualTo(String value) {
            addCriterion("VILLAGE_NAME <=", value, "VILLAGE_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameLike(String value) {
            addCriterion("VILLAGE_NAME like ", value, "VILLAGE_NAME", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameNotLike(String value) {
            addCriterion("VILLAGE_NAME  not like ", value, "VILLAGE_NAME", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameLeftLike(String value) {
            addCriterion("VILLAGE_NAME like ", value, "VILLAGE_NAME", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameNotLeftLike(String value) {
            addCriterion("VILLAGE_NAME  not like ", value, "VILLAGE_NAME", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameRightLike(String value) {
            addCriterion("VILLAGE_NAME like ", value, "VILLAGE_NAME", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameNotRightLike(String value) {
            addCriterion("VILLAGE_NAME  not like ", value, "VILLAGE_NAME", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameIn(List<String> values) {
            addCriterion("VILLAGE_NAME  in ", values, "VILLAGE_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameNotIn(List<String> values) {
            addCriterion("VILLAGE_NAME not in ", values, "VILLAGE_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameBetween(String value1, String value2) {
            addCriterion("VILLAGE_NAME between ", value1, value2, "VILLAGE_NAME");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andVillageNameNotBetween(String value1, String value2) {
            addCriterion("VILLAGE_NAME not between ", value1, value2, "VILLAGE_NAME");
            return (CodeStatVillageCriteria) this;
        }
        public CodeStatVillageCriteria andResidentPopIsNull() {
            addCriterion("RESIDENT_POP is null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopIsNotNull() {
            addCriterion("RESIDENT_POP is not null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopEqualTo(Integer value) {
            addCriterion("RESIDENT_POP =", value, "RESIDENT_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopNotEqualTo(Integer value) {
            addCriterion("RESIDENT_POP <>", value, "RESIDENT_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopGreaterThan(Integer value) {
            addCriterion("RESIDENT_POP >", value, "RESIDENT_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopGreaterThanOrEqualTo(Integer value) {
            addCriterion("RESIDENT_POP >=", value, "RESIDENT_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopLessThan(Integer value) {
            addCriterion("RESIDENT_POP <", value, "RESIDENT_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopLessThanOrEqualTo(Integer value) {
            addCriterion("RESIDENT_POP <=", value, "RESIDENT_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopLike(Integer value) {
            addCriterion("RESIDENT_POP like ", value, "RESIDENT_POP", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopNotLike(Integer value) {
            addCriterion("RESIDENT_POP  not like ", value, "RESIDENT_POP", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopLeftLike(Integer value) {
            addCriterion("RESIDENT_POP like ", value, "RESIDENT_POP", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopNotLeftLike(Integer value) {
            addCriterion("RESIDENT_POP  not like ", value, "RESIDENT_POP", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopRightLike(Integer value) {
            addCriterion("RESIDENT_POP like ", value, "RESIDENT_POP", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopNotRightLike(Integer value) {
            addCriterion("RESIDENT_POP  not like ", value, "RESIDENT_POP", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopIn(List<Integer> values) {
            addCriterion("RESIDENT_POP  in ", values, "RESIDENT_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopNotIn(List<Integer> values) {
            addCriterion("RESIDENT_POP not in ", values, "RESIDENT_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopBetween(Integer value1, Integer value2) {
            addCriterion("RESIDENT_POP between ", value1, value2, "RESIDENT_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andResidentPopNotBetween(Integer value1, Integer value2) {
            addCriterion("RESIDENT_POP not between ", value1, value2, "RESIDENT_POP");
            return (CodeStatVillageCriteria) this;
        }
        public CodeStatVillageCriteria andPovertyPopIsNull() {
            addCriterion("POVERTY_POP is null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopIsNotNull() {
            addCriterion("POVERTY_POP is not null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopEqualTo(Long value) {
            addCriterion("POVERTY_POP =", value, "POVERTY_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopNotEqualTo(Long value) {
            addCriterion("POVERTY_POP <>", value, "POVERTY_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopGreaterThan(Long value) {
            addCriterion("POVERTY_POP >", value, "POVERTY_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopGreaterThanOrEqualTo(Long value) {
            addCriterion("POVERTY_POP >=", value, "POVERTY_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopLessThan(Long value) {
            addCriterion("POVERTY_POP <", value, "POVERTY_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopLessThanOrEqualTo(Long value) {
            addCriterion("POVERTY_POP <=", value, "POVERTY_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopLike(Long value) {
            addCriterion("POVERTY_POP like ", value, "POVERTY_POP", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopNotLike(Long value) {
            addCriterion("POVERTY_POP  not like ", value, "POVERTY_POP", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopLeftLike(Long value) {
            addCriterion("POVERTY_POP like ", value, "POVERTY_POP", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopNotLeftLike(Long value) {
            addCriterion("POVERTY_POP  not like ", value, "POVERTY_POP", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopRightLike(Long value) {
            addCriterion("POVERTY_POP like ", value, "POVERTY_POP", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopNotRightLike(Long value) {
            addCriterion("POVERTY_POP  not like ", value, "POVERTY_POP", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopIn(List<Long> values) {
            addCriterion("POVERTY_POP  in ", values, "POVERTY_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopNotIn(List<Long> values) {
            addCriterion("POVERTY_POP not in ", values, "POVERTY_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopBetween(Long value1, Long value2) {
            addCriterion("POVERTY_POP between ", value1, value2, "POVERTY_POP");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyPopNotBetween(Long value1, Long value2) {
            addCriterion("POVERTY_POP not between ", value1, value2, "POVERTY_POP");
            return (CodeStatVillageCriteria) this;
        }
        public CodeStatVillageCriteria andPovertyRateIsNull() {
            addCriterion("POVERTY_RATE is null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateIsNotNull() {
            addCriterion("POVERTY_RATE is not null");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateEqualTo(Integer value) {
            addCriterion("POVERTY_RATE =", value, "POVERTY_RATE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateNotEqualTo(Integer value) {
            addCriterion("POVERTY_RATE <>", value, "POVERTY_RATE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateGreaterThan(Integer value) {
            addCriterion("POVERTY_RATE >", value, "POVERTY_RATE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateGreaterThanOrEqualTo(Integer value) {
            addCriterion("POVERTY_RATE >=", value, "POVERTY_RATE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateLessThan(Integer value) {
            addCriterion("POVERTY_RATE <", value, "POVERTY_RATE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateLessThanOrEqualTo(Integer value) {
            addCriterion("POVERTY_RATE <=", value, "POVERTY_RATE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateLike(Integer value) {
            addCriterion("POVERTY_RATE like ", value, "POVERTY_RATE", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateNotLike(Integer value) {
            addCriterion("POVERTY_RATE  not like ", value, "POVERTY_RATE", 1);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateLeftLike(Integer value) {
            addCriterion("POVERTY_RATE like ", value, "POVERTY_RATE", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateNotLeftLike(Integer value) {
            addCriterion("POVERTY_RATE  not like ", value, "POVERTY_RATE", 0);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateRightLike(Integer value) {
            addCriterion("POVERTY_RATE like ", value, "POVERTY_RATE", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateNotRightLike(Integer value) {
            addCriterion("POVERTY_RATE  not like ", value, "POVERTY_RATE", 2);
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateIn(List<Integer> values) {
            addCriterion("POVERTY_RATE  in ", values, "POVERTY_RATE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateNotIn(List<Integer> values) {
            addCriterion("POVERTY_RATE not in ", values, "POVERTY_RATE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateBetween(Integer value1, Integer value2) {
            addCriterion("POVERTY_RATE between ", value1, value2, "POVERTY_RATE");
            return (CodeStatVillageCriteria) this;
        }

        public CodeStatVillageCriteria andPovertyRateNotBetween(Integer value1, Integer value2) {
            addCriterion("POVERTY_RATE not between ", value1, value2, "POVERTY_RATE");
            return (CodeStatVillageCriteria) this;
        }

    }

    public static class CodeStatVillageCriteria extends GeneratedCriteria {

        protected CodeStatVillageCriteria() {
            super();
        }
    }

    public static class CodeStatVillageCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected CodeStatVillageCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected CodeStatVillageCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected CodeStatVillageCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected CodeStatVillageCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected CodeStatVillageCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected CodeStatVillageCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}